Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add basestation configuration #5

Merged
merged 1 commit into from
Dec 27, 2021
Merged

Add basestation configuration #5

merged 1 commit into from
Dec 27, 2021

Conversation

Florisheinen1
Copy link
Member

@Florisheinen1 Florisheinen1 commented Dec 22, 2021

I would like to be able to alter the frequency of basestations from within Robothub. This requires a message that can get the frequency and set the frequency.
This can be done with a general configuration message, to which other things can be added besides frequency in the future if necessary.
Because there is a practical limit of teams (2), only two frequencies will be used. To ensure the basestation can handle the new frequency, and to ensure it does not collide with others, I abstracted frequency from the messages, and want to make use of predefined channels: channel 0 and channel 1, (hence only a single bit for frequency)

],
"BasestationConfiguration" : [
["header", 8, None, "Header byte indicating the type of packet"],
["remVersion", 4, None, "Version of roboteam_embedded_messages"],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remVersion should be 5 now right?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

4 stands for 4 bits used, not for the version

@emielsteerneman
Copy link
Member

Looks good to me

Copy link
Member

@emielsteerneman emielsteerneman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. You can leave the REM version at 4 if you want, since this PR doesn't introduce any breaking changes.

@skaeringur97 skaeringur97 merged commit 7d24e48 into master Dec 27, 2021
@skaeringur97 skaeringur97 deleted the BasestationConfig branch December 27, 2021 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants